package day3;

/**
 * @author oldliu
 * @since 1.0
 */
public class StudentArray {
    public static void main(String[] args) {
        Student p[]=new Student[20];//主流方式
        p[0]=new Student();
        p[0].name="朱学峰";
        p[0].java=88;
        p[0].show();
        p[1]=new Student();///....
        for(int i=0;i<p.length;i++){
            System.out.println(p[i]);
        }
        //p[0].show();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>");
        int []ar={1,2,4,6};//
        Student s2[]={new Student(),new Student(),new Student(),new Student()};
        s2[0].name="王海波";
        s2[0].java=80;
        //....
        s2[0].show();

    }
}
